﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<iBuproModel.OwnerRequest>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	RequestDetail
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>RequestDetail</h2>

    <fieldset>
        <legend>Fields</legend>
        
        <div class="display-label">Id</div>
        <div class="display-field"><%: Model.Id %></div>
        
        <div class="display-label">Text</div>
        <div class="display-field"><%: Model.Text %></div>
        
        <div class="display-label">Pending</div>
        <div class="display-field"><%: Model.Pending %></div>

        <div class="display-label">Project</div>
        <div class="display-field"><%: Model.Project.Name %></div>
        
        <div class="display-label">Sender</div>
        <div class="display-field"><%: Model.User.FirstName %> | <%: Model.User.LastName %> | <%: Model.User.Email %> | <%: Model.User.Username %></div>


        
    </fieldset>
    <p>
        
        <%: Html.ActionLink("Accept", "RequestAccept", new {id = Model.Id}) %>  |  <%: Html.ActionLink("Cancel", "RequestCancel", new {id = Model.Id}) %>
    </p>

</asp:Content>

